﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_CHECK_REPORT_PIC
// * CreateDate    : 2012-1-9 21:48:50
// * Creater       : CodeSmith
// * LastChangeDate: 2012-1-9 21:48:50
// * LastChanger   : 2012-1-9 21:48:50
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class RepCheckReportPicEntity : EntityBase
    {
        public RepCheckReportPicTable TableSchema
        {
            get
            {
                return RepCheckReportPicTable.Current;
            }
        }

        public RepCheckReportPicEntity()
        {

        }

        public RepCheckReportPicEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.CheckReportPicId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_REPORT_PIC_ID"]));
            this.CheckReportId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_REPORT_ID"]));
            this.FileName = Convert.ToString(CommonFunctions.ToObject(dr["FILE_NAME"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public RepCheckReportPicEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.CheckReportPicId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_REPORT_PIC_ID"]));
            this.CheckReportId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_REPORT_ID"]));
            this.FileName = Convert.ToString(CommonFunctions.ToObject(dr["FILE_NAME"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepCheckReportPicTable.Current;
            }
        }

        #region Perporty List
        public string CheckReportPicId
        {
            get { return Convert.ToString(GetData(RepCheckReportPicTable.C_CHECK_REPORT_PIC_ID)); }
            set { SetData(RepCheckReportPicTable.C_CHECK_REPORT_PIC_ID, value); }
        }

        public string CheckReportId
        {
            get { return Convert.ToString(GetData(RepCheckReportPicTable.C_CHECK_REPORT_ID)); }
            set { SetData(RepCheckReportPicTable.C_CHECK_REPORT_ID, value); }
        }

        public string FileName
        {
            get { return Convert.ToString(GetData(RepCheckReportPicTable.C_FILE_NAME)); }
            set { SetData(RepCheckReportPicTable.C_FILE_NAME, value); }
        }

        public string Remark
        {
            get { return Convert.ToString(GetData(RepCheckReportPicTable.C_REMARK)); }
            set { SetData(RepCheckReportPicTable.C_REMARK, value); }
        }

        #endregion
    }


}

